package com.ruoyi.project.system.trick.mapper;

import java.util.List;
import com.ruoyi.project.system.trick.domain.VerbalTrick;
import org.apache.ibatis.annotations.Mapper;

/**
 * 话术Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-19
 */
@Mapper
public interface VerbalTrickMapper 
{


    //从设备表里搜索
    public VerbalTrick selectVerbalTrickByEquipmentIdAndUserName(Long equipmentId,String userName);


    public int insertEquipmentIdAndUserNameAndWechatId(Long equipmentId,String userName,String wechatId);

    public VerbalTrick selectDataStateByVerbalTrick(String verbalTrick);


    public int deleteFileByEquipmentIdAndUserName(Long equipmentId,String userName);

    //从话术表里搜索
    public VerbalTrick selectByEquipmentIdAndUserName(Long equipmentId,String userName);



    /**
     * 查询话术
     * 
     * @param id 话术主键
     * @return 话术
     */
    public VerbalTrick selectVerbalTrickById(Long id);

    /**
     * 查询话术列表
     * 
     * @param verbalTrick 话术
     * @return 话术集合
     */
    public List<VerbalTrick> selectVerbalTrickList(VerbalTrick verbalTrick);

    /**
     * 新增话术
     * 
     * @param verbalTrick 话术
     * @return 结果
     */
    public int insertVerbalTrick(VerbalTrick verbalTrick);

    /**
     * 修改话术
     * 
     * @param verbalTrick 话术
     * @return 结果
     */
    public int updateVerbalTrick(VerbalTrick verbalTrick);

    /**
     * 删除话术
     * 
     * @param id 话术主键
     * @return 结果
     */
    public int deleteVerbalTrickById(Long id);

    /**
     * 批量删除话术
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVerbalTrickByIds(String[] ids);
}
